<?php /* Smarty version 2.6.18, created on 2009-05-26 05:38:23
         compiled from default/user_register_company.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'default/user_register_company.html', 102, false),)), $this); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<title>注册企业用户&laquo;<?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<meta name="Author" content="stevenchow811@163.com">
<meta name="generator" content="<?php echo $this->_tpl_vars['UaVersion']; ?>
" />
<meta name ="keywords" content="<?php echo $this->_tpl_vars['sitename']; ?>
" />
<meta name="description" content="注册企业会员,如果你是法人实体,你可以提交您的公司基本信息,我们经过审核后,会为您开启诸如产品管理、企业资料管理等附加功能" />
<link href="<?php echo $this->_tpl_vars['CSS_PATH']; ?>
css/style.css" rel="stylesheet" type="text/css">
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/prototype.js"></script>
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/mixselect.js"></script>
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/general.js"></script>
<?php echo $this->_tpl_vars['xajax_javascript']; ?>

</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="<?php echo $this->_tpl_vars['page_width']; ?>
" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['ThemeName'])."/element.header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
  </tr>
</table>
<form name="regfrm" id="regfrm" method="post" action="<?php echo $this->_tpl_vars['SiteUrl']; ?>
user/register.php" autocomplete="off">
<input type="hidden" name="register" value="company" />
<table width="<?php echo $this->_tpl_vars['page_width']; ?>
"  border="0" align="center" cellpadding="0" cellspacing="5" >
  <tr class="corhui"> 
    <td height="32"><div align="right"> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td width="515" height="37">
			<span class="font15"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/icon03.gif" width="11" height="11">正在注册<?php echo $this->_tpl_vars['sitename']; ?>
企业会员</span>　　　　　　　　　　　　　　　　　　　　　
			</td>
            <td width="235"><div align="right">带<font class=S><span class="fontred">*</span><span class="style6"></span></font>号的为必填信息</div></td>
          </tr>
        </table>
      </div></td>
  </tr>
  <tr> 
    <td valign="top" class="font12"><div align="center"><span class="time">请认真仔细的填写以下信息</span>,以便我们能够准确地为您服务!</div></td>
  </tr>
  <tr> 
    <td> 
      <table width="100%" height="33" border="0" cellpadding="0" cellspacing="0" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/loginbj.jpg">
        <tr> 
          <td><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/login01.jpg" width="157" height="33"></td>
        </tr>
      </table>
      <table width="100%"  border="0" cellpadding="5" cellspacing="0">
<?php if ($this->_tpl_vars['IfRegisterPicture'] == 999): ?>
		<tr> 
          <td width="40%" align="right" class="corred">验证码：</td>
          <td colspan="2"><img src="<?php echo $this->_tpl_vars['media_path']; ?>
ua-admin/images/icon03.gif" width="11" height="11"> 输入四位数验证码： <input name="login_auth" id="login_auth" type="text" value="" size="4" maxlength="4">  
		  <img src="../auth_image.php"></td>
          </tr>
<?php endif; ?>
        <tr> 
          <td width="40%" align="right" class="corred">用户名：</td>
          <td><input type="text" name="data[Member][username]" class="linehui" id="membername" maxlength="15" value="<?php echo $_POST['membername']; ?>
" />
          <span class="fontred">*</span></td>
          <td align="left"><div id="membernameDiv" align="left" style="display:block"  width="100%"><span class="errorInner">*</span><span class="time">5-20字(A-Z,a-z, 0-9,下划线)</span>
                <!--ok-->
          </div></td>
        </tr>
        <tr> 
          <td align="right" class="corred">密码：</td>
          <td colspan="2"> <input type="password" name="data[Member][memberpass]" class="linehui" id="memberpass" maxlength="20" value="">
          <span class="fontred">*</span></td>
        </tr>
        <tr> 
          <td align="right" class="corred">再次输入密码：</td>
          <td colspan="2"> <input name="re_memberpass" type="password" class="linehui" id="re_memberpass" value=""> 
            <span class="fontred">*</span></td>
        </tr>
        <tr> 
          <td align="right" class="corred"><label for="member_email" ACCESSKEY="P"> Email： </label></td>
          <td> <input name="data[Member][email]" class="linehui" id="member_email" value="" maxLength=100 />
          <span class="fontred">*</span></td>
          <td><div id="memberemailDiv" align="left" style="display: block;"></div></td>
        </tr>
		<?php if ($this->_tpl_vars['ForumSet']['switch']): ?>
        <tr>
          <td height="26" align="right" class="corred">加入商业论坛：</td>
          <td colspan="2"><input type="radio" name="join_forum" value="1" checked="checked">是<input type="radio" name="join_forum" value="0">否</td>
        </tr>
		<?php endif; ?>
      </table>
      <table width="100%" height="33" border="0" cellpadding="0" cellspacing="0" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/loginbj.jpg">
        <tr> 
          <td><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/login02.jpg" width="157" height="33" border="0"></td>
        </tr>
      </table>
      <table width="100%"  border="0" cellpadding="5" cellspacing="2">
        <tr> 
          <td width="40%" align="right" class="corred"> 公司名称： </td>
          <td width="30%"> <input name=company[name] class="linehui" id="company_name" value="" maxLength="150"><span class="fontred">*</span></td>
          <td width="30%"><div id="companynameDiv"></div></td>
        </tr>
        <tr> 
          <td width="40%" align="right" class="corred"> 公司类型： </td>
          <td width="60%" colspan="2">
			<select name="company[type_id]" id="companytypeId">
			<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['CompanyTypes'],'selected' => $this->_tpl_vars['smaty']['post']['companytype']), $this);?>

		  </select>		  
		  </td>
        </tr>
        <tr> 
          <td width="40%" align="right" class="corred"> 所在地区： </td>
          <td width="60%" colspan="2"><select name="country_id" id="countryid" USEDATA="dataSrc2" SUBCLASS="1"></select>&nbsp;<select name="province_id" id="provinceid" USEDATA="dataSrc2" SUBCLASS="2"></select></td>
        </tr>
        <tr> 
          <td width="40%" align="right" class="corred"> 所在地区： </td>
          <td width="60%" colspan="2"><select name="aindustry" id="aindustry" USEDATA="dataSrc" SUBCLASS="1">
                          </select></td>
        </tr>
        <tr> 
          <td align="right" class="corred"> 联系人： </td>
          <td colspan="2"> <input name=company[link_man] class="linehui" id=company_link_man value=""><span class="fontred">*</span></td>
        </tr>
        <tr> 
          <td align="right" class="corred"> 公司电话 ： </td>
          <td colspan="2"> <table width="350"  border="0" cellspacing="2" cellpadding="3">
              <tr class="corhui"> 
                <td>国家区号：</td>
                <td> 城市区号： </td>
                <td width="150"> 号码： </td>
              </tr>
              <tr> 
                <td width="150" class="style14"><input name=tel[country] class="linehui" id=tel[country] value="086" size="4" maxlength=4></td>
                <td width="150" class="style14"> <input name=tel[area] class="linehui" id=tel[area] size="4" maxLength=4></td>
                <td width="150" class="style14"><input name=tel[number] class="linehui" id=tel[number] size="12" maxLength=12></td>
              </tr>
              <tr> 
                <td colspan="4" class="time">(只能填写 固定电话!)</td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td align="right" class="corred">手机 ：</td>
          <td colspan="2"><input name=company[mobile] class="linehui" id=company_mobile></td>
        </tr>
      </table>
	  <table width="100%" height="33" border="0" cellpadding="0" cellspacing="0" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/loginbj.jpg">
        <tr> 
          <td><a name="p" href="#p" onClick="hideorshow('divPersonal');"><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/step2.jpg" width="157" height="33" border="0"></a></td>
        </tr>
      </table>
<div id="divPersonal" style="display:none">
      <table width="100%"  border="0" cellpadding="5" cellspacing="2">
        <tr> 
          <td width="40%" align="right" class="corred"> 姓名:</td>
          <td width="60%"><span class="fontred">
            <input name=data[Member][lastname] class="linehui" id=member_lastname size="30" maxlength=20>
          </span> </td>
        </tr>
        <tr>
          <td align="right" class="corred">性别:</td>
          <td><input name="data[Member][gender]" type="radio" value="1" checked>
            男
              <input type="radio" name="data[Member][gender]" value="2">
            女
            <input name="data[Member][gender]" type="radio" value="0">
            保密</td>
        </tr>
        <tr> 
          <td align="right" class="corred"> 联系电话:</td>
          <td><input name=data[Member][tel] class="linehui" id=member_tel size="30" maxLength=15>
            <span class="time">(只能填写 固定电话!)</span></td>
        </tr>
        <tr> 
          <td align="right" class="corred"> 手机:</td>
          <td> <input name=data[Member][mobile] class="linehui" id=member_mobile size="30" maxLength=15>          </td>
        </tr>
        <tr> 
          <td align="right" class="corred"> 联系地址:</td>
          <td> <input name=data[Member][address] class="linehui" id=member_address size="30" maxLength=100></td>
        </tr>
        <tr> 
          <td align="right" class="corred"> 邮政编码:</td>
          <td> <input name=data[Member][zipcode] class="linehui" id=member_zipcode size="30" maxLength=10>          </td>
        </tr>
        <tr>
          <td align="right" class="corred">QQ:</td>
          <td><input name=data[Member][qq] class="linehui" id=member_qq size="30" maxLength=15></td>
        </tr>
        <tr>
          <td align="right" class="corred">ICQ:</td>
          <td><input name=data[Member][icq] class="linehui" id=member_icq size="30" maxLength=15></td>
        </tr>
        <tr>
          <td align="right" class="corred">MSN Messenger:</td>
          <td><input name=data[Member][msn] class="linehui" id=member_msn size="30" maxLength=50></td>
        </tr>
        <tr>
          <td align="right" class="corred">Yahoo Messenger:</td>
          <td><input name=data[Member][yahoo] class="linehui" id=member_yahoo size="30" maxLength=50></td>
        </tr>
      </table>
	  </div>      
	  </td>
  </tr>
  <tr class="corhui"> 
    <td height="73" align="center" valign="top" class="font14blak"> 
      <hr size="1"> 
      <div id="divProgress" align="center"><a href="<?php echo $this->_tpl_vars['UrlContainer']['artical']; ?>
" target="_blank" class="linkred12"><br>
        点击阅读<?php echo $this->_tpl_vars['sitename']; ?>
服务条款</a></div>
		<br>
<div align="center"><input type="button" name="Submit" id="Submit" value="同意服务条款，提交注册信息" />
        </div></td>
  </tr>
</table>
</form>
<table width="<?php echo $this->_tpl_vars['page_width']; ?>
" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['ThemeName'])."/element.foot.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
  </tr>
</table>
<script type="text/javascript">
function hideorshow(curDiv){
$(curDiv).style.display = ($(curDiv).style.display == 'block')? 'none':'block';
}

function IsURL(urlString)
{
	regExp = /(?:(?:http[s]?|ftp):\/\/)?[^\/\.]+?\.[^\.\\\/]+?\.\w{2,}$/i;
	if (urlString.match(regExp))return true;
	else return false;
}

function checkreg(){
	if($F('membername')==""){
		alert("用户名必须填写");
		$('membername').focus();
		return false;
	}
	if(!(/^[a-zA-Z][a-zA-Z0-9_]{4,21}$/.test($F('membername')))){
		alert("用户名必须字母开头，允许5-20字节，允许字母数字下划线");
		$('membername').focus();
		return false;
	}
	
	if($F('memberpass')==""){
		alert("请输入密码");
		$('memberpass').focus();
		return false;
	}
	if($F('re_memberpass')==""){
		alert("请再次输入密码");
		$('re_memberpass').focus();
		return false;
	}
	if($F('memberpass') != $F('re_memberpass')){
		alert("前后密码输入不一致");
		$('memberpass').focus();
		return false;
	}

	if($F('member_email')==""){
		alert("请输入您的Email");
		$('member_email').focus();
		return false;
	}
	if(chkemail($F('member_email')) == 0){
		alert("您的Email格式输入有误!");
		$('member_email').focus();
		return false;
	}else if(!(/^[a-zA-Z0-9_\-]{1,}@[a-zA-Z0-9_\-]{1,}\.[a-zA-Z0-9_\-.]{1,}$/.test($F('member_email')))) {
		alert("您的Email格式输入有误!");
		$('member_email').focus();
		return false;
	}
	<?php if ($this->_tpl_vars['IfRegisterPicture']): ?>
	if($F('login_auth')==""){
		alert("请输入验证码，不区分大小写");
		$('login_auth').focus();
		return false;
	}
	<?php endif; ?>
	$("Submit").disabled = true;
	document.regfrm.submit();
}
addEvent($("member_email"), "blur", function checkEmail(){
	xajax_checkMemberEmail($F('member_email'));
});
addEvent($("company_name"), "blur", function checkCompanyName(){
	xajax_checkCompanyName($F('company_name'));
});
addEvent($("membername"), "blur", function checkName(){
	xajax_checkName($F('membername'));
});
addEvent($("Submit"), "click", function doRegister(){
	return checkreg(this);
});
var linkage = new Linkage("dataSrc", "<?php echo $this->_tpl_vars['JS_PATH']; ?>
media/xml/industry_option.xml");
linkage.BLANK_SELECT = "--行业类别--";
linkage.init();
var linkage2 = new Linkage("dataSrc2", "<?php echo $this->_tpl_vars['JS_PATH']; ?>
media/xml/area.xml");
linkage2.BLANK_SELECT = "请选择地区";
linkage2.init();
</script>
</body>
</html>